﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace YLPublicService
{
    [ServiceContract]
    public interface IServiceBase
    {
        /// <summary>
        /// 登录返回guid，登录失败返回guid是空的
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        [OperationContract]
        Guid Login(string loginName, string pwd);
        /// <summary>
        /// 退出
        /// </summary>
        /// <param name="guid"></param>
        [OperationContract]
        void LoginOut(Guid guid);

        /// <summary>
        /// 获取当前模板信息
        /// </summary>
        /// <param name="guid"></param>
        /// <returns></returns>
        [OperationContract]
        TransferModel.Template[] GetEnableTemplates(Guid guid);
    }
}
